package com.zsrt.java.day20161226.xww.demo3.demo10;

import java.util.Scanner;

public class Table1 {


	public static void demo11(int c){
		int a=1;
		do{
			int b=1;
			do{
				System.out.print(a+"*"+b+"="+a*b);
				System.out.print("\t");
				b++;
			}while(b<=a);
			System.out.println();
			a++;
		}while(a<=c);
	}
	
	
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		System.out.println("想打印的乘法表如：输入数字1到9");
		int c=sc.nextInt();
		demo11(c);
		sc.close();
	}
}
